package com.ruoyi.system.Controller;


import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.system.domain.CmUserInfo;
import com.ruoyi.system.domain.Vo.CmUserPiJ;
import com.ruoyi.system.service.ICmUserHtclockinService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * 打卡信息Controller
 *
 * @author pop404NotFound
 * @date 2021-11-15
 */
@Controller
@RequestMapping("/CmSystem/CmUserPij")
public class CmUserPijController  extends BaseController {
    private String prefix = "CmSystem/CmUserPij";

    @Autowired
    public ICmUserHtclockinService cmUserHtclockinService;


    @GetMapping()
    public String getPij(){
        return prefix+"/CmUserPij";
    }

    @PostMapping("/list")
    @ResponseBody
    public TableDataInfo list(CmUserPiJ cmUserPiJ)
    {
        startPage();
        List<CmUserPiJ> list = cmUserHtclockinService.selectPijIndexList(cmUserPiJ);
        return getDataTable(list);
    }

}
